/*
package com.cloud.base.controller;

import com.cloud.api.constants.StrVo;
import com.cloud.api.domain.sys.GlobalDataPermit;
import com.cloud.base.service.IGlobalDataPermitService;
import com.cloud.core.util.R;
import com.cloud.log.annotation.Log;
import com.cloud.log.enums.BusinessType;
import com.cloud.log.enums.OperatorType;
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.validation.Valid;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Set;

*/
/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author haohaibo
 * @since 2024-10-14
 *//*

@Tag(name = "权限模块")
@ApiSupport(order = 202)
@RestController
@RequestMapping("/global-data-permit")
public class GlobalDataPermitController {

    @Resource
    private IGlobalDataPermitService globalDataPermitService;
    @Resource(name = "myRedis")
    private RedisTemplate<String,Object> redisTemplate;

    @Operation(summary = "查询数据权限")
    @GetMapping("/getDataPermit")
    @Log(title = "权限模块-查询数据权限", businessType = BusinessType.OTHER, operatorType = OperatorType.MANAGE)
    public R<String> selectDataPermitList(){
        return R.ok(globalDataPermitService.selectDataPermitList());
    }

    @Operation(summary = "新增或修改数据权限")
    @PostMapping("/InsertOrUpdateDataPermit")
    @Log(title = "权限模块-新增或修改数据权限", businessType = BusinessType.OTHER, operatorType = OperatorType.MANAGE)
    public R InsertOrUpdateDataPermit(@RequestBody @Valid GlobalDataPermit para){
        globalDataPermitService.InsertOrUpdateDataPermit(para);
        return R.ok();
    }

    @Operation(summary = "删除数据权限")
    @PostMapping("/deleteDateDataPermit")
    @Log(title = "权限模块-删除数据权限", businessType = BusinessType.DELETE, operatorType = OperatorType.MANAGE)
    public R deleteDateDataPermit(@RequestBody @Valid StrVo para){
        globalDataPermitService.removeById(para.getId());
        redisTemplate.opsForSet().remove("spring_cache_funIds",para.getId());
        return R.ok();
    }


}*/
